﻿using System;
using System.Collections.Generic;

using Moe.ECamel.Common.Contracts;
using Moe.ECamel.Common.Entities;

namespace Moe.ECamel.Client.ServiceProxies
{
	/// <summary>
	/// Service Agent for Employee services.
	/// </summary>
	public class EmployeeServiceProxy : ECamelServiceProxy<IEmployeeService>, IEmployeeService
	{

		public List<Employee> GetEmployeesByLibrary(int libraryId)
		{
			return ServiceProxy.GetEmployeesByLibrary(libraryId);
		}

		public ECamelError CreateEmployee(Employee employee)
		{
			return ServiceProxy.CreateEmployee(employee);
		}

		public ECamelError UpdateEmployee(Employee employee)
		{
			return ServiceProxy.UpdateEmployee(employee);
		}

		public ECamelError UpdateEmployeeStatus(int employeeId, bool active)
		{
			return ServiceProxy.UpdateEmployeeStatus(employeeId, active);
		}

		public ECamelError ChangeManager(int libraryId, int employeeId)
		{
			return ServiceProxy.ChangeManager(libraryId, employeeId);
		}
	}
}